<?php
namespace Core\Service\Parameterchooser;


class ParameterChooserFactory
{

    public static    $PARAMETER_TYPE_FREETEXT = 'Freetext';
    public static    $PARAMETER_TYPE_GENDER = 'Gender';
    public static    $PARAMETER_TYPE_ARTICLE = 'Article';
    public static    $PARAMETER_TYPE_CATEGORY = 'Category';
    private static   $_PARAMETER_CLASS_PREFIX = 'Core\Service\Parameterchooser\ParameterChooser';

    /**
     * @param $name
     * @return ParameterChooserInterface
     */
    public static function getParameterchooserService($name){
        $realName = ucfirst($name);
        $classNamePrefix = self::$_PARAMETER_CLASS_PREFIX;
        $className = $classNamePrefix.$realName;
        return new $className();

    }

}
